package com.cltech;

import com.cltech.frame.base.BaseRepositoryFactoryBean;
import com.cltech.frame.base.BaseRepositoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * 注：为了避免扫描路径不一致，请将启动类放在Root Package 即 com.hehe.integration
 */

@SpringBootApplication
@EnableJpaRepositories(
        basePackages = {"com.cltech.repository"},
        repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class,
        repositoryBaseClass = BaseRepositoryImpl.class)
public class WebApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebApplication.class, args);
    }
}
